1bashThis demonstrates sending an HTTP GET request with a custom User-Agent header using curl.curl --header "User-Agent: Foo" https://example.comexternal toolscurlHTTP requestcustom headers
2bashThis demonstrates using curl to make an HTTP request with a specified referer header.curl --referer http://www.example.come http://www.example.comexternal toolscurlHTTP requestreferer header
3bashThis demonstrates making an HTTP request with basic authentication using curl.curl http://user:password@example.org/external toolscurlHTTP requestbasic authentication
4bashThis demonstrates making an HTTP POST request with a JSON payload using curl.curl --request POST -H "Content-Type: application/json" --data '{"foo":"bar"}' https://example.comexternal toolscurlHTTP requestPOST request with JSON payload